package com.chinacoal.microservice.api.model;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="完成待办参数",description="完成待办参数")
public class UtaskCompleteTaskParam {
	
	@ApiModelProperty(value ="处理时间", example="格式：yyyy-MM-dd HH:mm:ss", required=true)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale = "zh" , timezone="GMT+8")
	@NotNull(message = "处理时间不能为空: handleTime")
	private Date handleTime;
    
	@ApiModelProperty(value ="应用系统编码", example="对应应用中心", required=true)
	@NotBlank(message = "应用系统编码不能为空: sysCode")
	private String sysCode;
	
	@ApiModelProperty(value ="待办Id", example="待办Id", required=true)
	@NotBlank(message = "待办Id不能为空: sysTaskId")
	private String sysTaskId;
	
	@ApiModelProperty(value ="移动端请求地址", example="", required=true)
	private String appUrl;
	
	@ApiModelProperty(value ="PC端请求地址", example="", required=true)
	private String pcUrl;
	
	@ApiModelProperty(value ="审批源", example="APP,PC等", required=true)
	@NotBlank(message = "审批源不能为空: completeFrom")
	private String completeFrom;
	
    @ApiModelProperty(value ="是否内部系统", example="", required=false)
    @TableField(exist = false)
    private String isInternal;
}
